package com.ruoyi.miniapp.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.Date;

/**
 * 故障信息对象 t_malfunction
 * 
 * @author ruoyi
 * @date 2022-10-23
 */
public class Malfunction extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 故障信息id */
    private Long malfunctionId;

    /** 故障类型 */
    @Excel(name = "故障类型")
    private Long type;

    /** 故障描述 */
    @Excel(name = "故障描述")
    private String describes;

    /** 故障上报用户id */
    @Excel(name = "故障上报用户id")
    private Long loginId;

    /** 医院或科室对接人 */
    @Excel(name = "医院或科室对接人")
    private Long userId;

    /** 医院ID */
    @Excel(name = "医院ID")
    private Long hospitalId;

    /** 故障标题 */
    @Excel(name = "故障标题")
    private String title;

    /** 科室ID */
    @Excel(name = "科室ID")
    private Long deptId;

    /** 床位ID */
    @Excel(name = "床位ID")
    private Long bedId;

    /** 1.已备案、2.修复中、3.已修复、4.无法修复 */
    @Excel(name = "1.已备案、2.修复中、3.已修复、4.无法修复")
    private Long statue;

    /** 故障备案时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "故障备案时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date time;

    /** 订单id */
    @Excel(name = "订单id")
    private Long orderId;

    public void setMalfunctionId(Long malfunctionId) 
    {
        this.malfunctionId = malfunctionId;
    }

    public Long getMalfunctionId() 
    {
        return malfunctionId;
    }
    public void setType(Long type) 
    {
        this.type = type;
    }

    public Long getType() 
    {
        return type;
    }
    public void setDescribes(String describes) 
    {
        this.describes = describes;
    }

    public String getDescribes() 
    {
        return describes;
    }
    public void setLoginId(Long loginId) 
    {
        this.loginId = loginId;
    }

    public Long getLoginId() 
    {
        return loginId;
    }
    public void setUserId(Long userId) 
    {
        this.userId = userId;
    }

    public Long getUserId() 
    {
        return userId;
    }
    public void setHospitalId(Long hospitalId) 
    {
        this.hospitalId = hospitalId;
    }

    public Long getHospitalId() 
    {
        return hospitalId;
    }
    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }
    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }
    public void setBedId(Long bedId) 
    {
        this.bedId = bedId;
    }

    public Long getBedId() 
    {
        return bedId;
    }
    public void setStatue(Long statue) 
    {
        this.statue = statue;
    }

    public Long getStatue() 
    {
        return statue;
    }
    public void setTime(Date time) 
    {
        this.time = time;
    }

    public Date getTime() 
    {
        return time;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("malfunctionId", getMalfunctionId())
            .append("type", getType())
            .append("describes", getDescribes())
            .append("loginId", getLoginId())
            .append("userId", getUserId())
            .append("hospitalId", getHospitalId())
            .append("title", getTitle())
            .append("deptId", getDeptId())
            .append("bedId", getBedId())
            .append("statue", getStatue())
            .append("time", getTime())
            .append("orderId", getOrderId())
            .toString();
    }
}
